public class Circle {
    private int x; //坐标
    private int y;
    private int r; //半径
    //x的set方法，下同
    public void setX(int x) {
        this.x = x;
    }
    public void setY(int y) {
        this.y = y;
    }
    public void setR(int r) {
        this.r = r;
    }
    //x的get方法，下同
    public int getX() {
        return x;
    }
    public int getY() {
        return y;
    }
    public int getR() {
        return r;
    }
    //测试函数
    public static void main(String[] args){
        Circle c = new Circle(); //创建对象
        c.setX(100); //设置坐标x
        c.setY(100); //设置坐标y
        c.setR(20); //设置半径r
        //显示信息
        System.out.println("x = "+c.getX()+"\ny = "+c.getY()+"\nr = "+c.getR());
    }
}